<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <nav aria-label="Page navigation">
        <ul class="pagination">
          
            

        </ul>
      </nav>

    <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script>
        $.ajax({
            url:'http://localhost:3000/users/list',
            type:'post'
        }).then(res=>{
            var pages="";
            for(let i=1;i<res.pages;i++){
                pages+='<li><a href="#">'+i+'</a></li>'
            }
            $('.pagination').html(pages);
        })
    </script>
</body>
</html>